import * as THREE from "three";

function circle(geometry, material, r) {
    // THREE.Line
    var line = new THREE.LineLoop(geometry, material); //起始点闭合
    // 圆弧线默认在XOY平面上，绕x轴旋转到XOZ平面上
    line.rotateX(Math.PI / 2);
    line.scale.set(r, r, r);//通过line的scale属性设置公转轨迹半径
    return line
}

export default circle
